import com.tledu.week.model.User;
import com.tledu.week.service.UserService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

/**
 * @author Antg
 * @date 2021/8/10  16:34
 */
public class WeeklyUser {
    @Test
    public void test() {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService userService = applicationContext.getBean(UserService.class);
        List<User> withPage = userService.findWithPage(1, 5);
        System.out.println(withPage);
    }
}
